//
//  THCrashManager.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/14.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol THCrashManagerProtocol <NSObject>

/**向后台传递错误*/
- (void)reportError:(NSError*)error;

/**向后台传递异常*/
- (void)reportExp:(NSException*)exception;

@end

@interface THCrashManager : NSObject

@property (nonatomic, weak) id<THCrashManagerProtocol> delegate;

+ (THCrashManager*)shareInstance;

/**向后台传递错误*/
- (void)reportError:(NSError*)error;

/**向后台传递异常*/
- (void)reportExp:(NSException*)exception;

@end

NS_ASSUME_NONNULL_END
